package bo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Entity
@Table(name="criterio_cobro")
public class CriterioDeCobro extends PersistentObject {

	@Enumerated(EnumType.STRING)
	private FormaDePago formaDePago;
	
	@Column(columnDefinition = "double default 1")
	private Double ratio;

	public FormaDePago getFormaDePago() {
		return formaDePago;
	}

	public void setFormaDePago(FormaDePago formaDePago) {
		this.formaDePago = formaDePago;
	}

	public Double getRatio() {
		return ratio;
	}

	public void setRatio(Double ratio) {
		this.ratio = ratio;
	}
	
}
